package com.wechart.service.user;


import com.wechart.controller.Auth;
import com.wechart.dao.domain.Userinfo;
import com.wechart.model.AuthModel;

import java.util.List;

/**
 * Created by SUNZZ on 2017/2/13.
 */
public interface AuthService {

//    Auth getUser(String username);

    int updateUserState(Auth auth, short i);

    List<Userinfo> getAllUsers(String area);

    Auth getUserByIdAndPwd(String id, String pwd);

    int passwd(Auth auth, String psd);

    int insertUser(AuthModel authModel);

    Userinfo selectAllUsersById(String id);

    int modifyUser(String id, AuthModel authModel);

    void insertAdmin(String pwd);

    int countUser();
}
